<?php
/**
 * <https://y.st./>
 * Copyright © 2019 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => 'Not eating as well as I should',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<img src="/img/CC_BY-SA_4.0/y.st./weblog/2019/07/31.jpg" alt="Deconstruction" class="framed-centred-image" width="800" height="480"/>
<section id="diet">
	<h2>Dietary intake</h2>
	<p>
		For breakfast, I had 75 grams of cereal and 50 grams of soy milk.
		For lunch, I had two small, baked potatoes with tapioca cheese.
		I thought they&apos;d last me, but they really didn&apos;t.
		I wasn&apos;t feeling great later in the day when I was out running errands, and ended up stopping for a couple fast food burritos.
		I debated back and forth about whether I should get them at all, but decided I needed to keep myself filled to try to keep my metabolism up.
		When I got home though, I ended up starving myself for a while.
		The problem wasn&apos;t even that I was trying to avoid eating.
		The problem was that I knew I had to make a very specific thing for dinner, that I didn&apos;t want to make it, and that I knew if I ate something else, I&apos;d end up not making dinner.
		Finally, the hunger got bad enough that I got up and started cutting the potatoes to cook in soy milk with Italian sausage and onions.
		I wasn&apos;t in the mood to cut vegetables, but I need to get these potatoes used up before they completely spoil.
		They&apos;re already pretty shrivelled on the outside, though the insides are still firm for now.
		Before I got to work on that though, I had a large spoon full of peanut butter.
		I was told that peanut butter&apos;s an appetite suppressant.
		I&apos;m not sure how true that is, but if it is true, I figured it would keep me going until I&apos;d gotten everything cut and baked.
		If nothing else, it seemed to serve as a placebo and do what I needed it to do.
		For dinner, I had about 400 grams of the aforementioned potatoes, sausage, and onions baked in soy milk.
		I think next time, I need some sort of bullion or something.
		It didn&apos;t have much flavour.
	</p>
	<p>
		Today wasn&apos;t a great day, diet-wise.
		My problem wasn&apos;t overeating though, but <strong>*under-eating*</strong>.
		I likely substantially cut my metabolism for the day.
		I&apos;m probably going to pay for that in the form of it taking a bit longer to get rid of this massive belly.
	</p>
</section>
<section id="drudgery">
	<h2>Drudgery</h2>
	<p>
		My discussion posts for the day:
	</p>
	<blockquote>
		<p>
			Yeah, the Blender Foundation actually has several of such films that they&apos;ve produced to promote their software (and likely also to test said software).
			On I&apos;m particularly interested in is Cosmos Laundromat, an unfinished film.
			It&apos;s going to be their first feature-length film, and the part they&apos;ve released already has me waiting for more.
		</p>
		<p>
			You make a good point about the projectiles.
			I hadn&apos;t considered them specifically, but you&apos;re right that they would be difficult to properly animate using keyframe animation.
			You&apos;d need to calculate many of the points the projectiles fly through by hand, then build keyframes to represent those points.
			It&apos;d be much easier to just hand the computer an equation describing the motion of the projectile and have it calculate all the frames from that.
			I think this really shows that keyframe animation, which was clearly used for things such as the facial expressions and much of the animals&apos; movement, can be used alongside procedural animation.
		</p>
	</blockquote>
	<blockquote>
		<p>
			Modularity is hugely powerful, as you mentioned.
			In my own code, I&apos;ve always found I&apos;m happiest with the results when I decouple the main logic from the interface specification.
			In my code though, that often means making the main logic and the interface into separate plugins to be run by the program that runs my code, with the interface logic hooking into an $a[API] I&apos;ve built into the main functionality logic.
			That way, the interface can be swapped out for another, and I often build multiple plugins that provide different interfaces.
			That doesn&apos;t really work for a unified application, but at least you can still supply multiple interfaces in the application and choose one based on either device hardware, screen orientation, or user settings.
			As you said, it also makes it easier to design the layout without having to mess with the main logic, which makes it easier to see what needs to be modified and also makes it easier to avoid breaking the main logic and having to fix that.
		</p>
	</blockquote>
</section>
<section id="Minetest">
	<h2>Minetest</h2>
	<img src="/img/CC_BY-SA_3.0/minetest.net./weblog/2019/07/31.png" alt="My first diamond. Woo, I guess." class="framed-centred-image" width="1024" height="600"/>
	<p>
		I&apos;m not sure what I messed up, but apparently, I messed up something last night before I took my Minetest screenshot.
		I&apos;m not one item away from level-up no mater what item it is.
		As best I can guess, I&apos;d mined stuff I shouldn&apos;t have in the test world in which the screenshot was taken or something?
		I don&apos;t remember doing that, but it&apos;d explain why I was so close to level-up there.
		But I&apos;ve overwritten the data now, so I can&apos;t double check that.
		I didn&apos;t feel like <code>liblevelup</code> was stable enough to open my main world last night though, so the screenshot wasn&apos;t taken there.
		Now, in the main world, I was nowhere near a level-up.
		I guess that makes more sense though.
		When I get close to a level-up, I finish it off.
		I shouldn&apos;t, therefore, have been close to one.
		The new system would have brought me closer to one, but with how few elements I&apos;ve managed to get my hands on, the chances of the change adding up enough to make a difference would be below average.
	</p>
	<p>
		I finally found a few diamonds, though I&apos;d rather find mese, to be honest.
		Diamonds are a new element for me, so they&apos;re worth more toward level-up, but if I had more mese, I could travel further out in the overworld, and find lots of new elements.
		Farming and glacier-mining seem lucrative, for example.
		And if I could find jungle grass, I could actually stay underground a lot easier by making a bed from the cotton I could grow from it.
		If I remember correctly, pine trees are the worst trees to use as furnace fuel, too.
		They don&apos;t burn as long as other trees.
		If I recall, the darker the wood, the longer it burns in Minetest, so what would really be useful in processing metals would be some jungle trees, which have the darkest wood.
	</p>
</section>
END
);
